package com.donn.securitycontrolplatform.role.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.donn.securitycontrolplatform.common.Result;
import com.donn.securitycontrolplatform.role.entity.TRole;

/**
 * <p>
 * 角色信息表 服务类
 * </p>
 *
 * @author zhenglixiang
 * @since 2022-06-10
 */
public interface ITRoleService extends IService<TRole> {

    Result insertRole(TRole role);

    Result updateRole(TRole role);

    Result deleteRole(String roleId);

    Result selectRoleList(TRole role, Page page);

    Result getRoleById(String roleId);

    TRole getRoleByUserId(Long userId);
}
